import request from '@/utils/request'

/** *
 *
 * 获取学生信息列表
 * **/
export function studentInfo(params) {
    return request({
        url: '/admin/class/student',
        params
    })
}
/** *
 *
 * 删除学生信息
 * **/
export function delStudent(data) {
    return request({
        url: '/admin/class/student',
        method: 'DELETE',
        data
    })
}
/** *
 *
 * 学生信息回显
 * **/
export function studentShow(id) {
    return request({
        url: `/admin/class/student/${id}`,
    })
}
/** *
 *
 * 编辑学生信息
 * **/
export function editStudentInfo(data) {
    return request({
        url: `/admin/class/student/${data.id}`,
        method: 'PUT',
        data
    })
}
/** *
 *
 * 添加学生信息
 * **/
export function addStudent(data) {
    return request({
        url: '/admin/class/student',
        method: 'POST',
        data
    })
}
/** *
 *
 * 批量操作
 * **/
export function piLiang(data) {
    return request({
        url: '/admin/class/studentChangeStatus',
        method: 'PUT',
        data
    })
}
/** *
 *
 * 批量导入
 * **/
export function daoRu(data) {
    return request({
        url: '/admin/class/student/import',
        method: 'POST',
        data
    })
}